package mytest.huaweiG.GraphB;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

/**
* Created by safe on 2017-04-01.
*/
 class Graph {
   private Set<Vertex> vertexSet = new HashSet<Vertex>();
   // 相邻的节点
   private Map<Vertex, Vertex[]> adjacencys = new HashMap<Vertex, Vertex[]>();

   public Set<Vertex> getVertexSet() {
       return vertexSet;
   }

   public void setVertexSet(Set<Vertex> vertexSet) {
       this.vertexSet = vertexSet;
   }

   public Map<Vertex, Vertex[]> getAdjacencys() {
       return adjacencys;
   }

   public void setAdjacencys(Map<Vertex, Vertex[]> adjacencys) {
       this.adjacencys = adjacencys;
   }
}
